﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Edit
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="<%: Url.Content("~/Content/css/Common/Common.css") %>" rel="stylesheet"
        type="text/css" />
    <script src="../../Scripts/jquery.cookie.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.form.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.validate.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.validate.expand.js" type="text/javascript"></script>
    <script type="text/javascript">
        var SaveSuccess = "<%:Html.Lang("Menu_Edit_Success")%>";
        var SaveFail = "<%:Html.Lang("Menu_Edit_SaveFail")%>";
    </script>
    <script src="../../Scripts/Menu/Edit.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <form id="myForm" runat="server">
    <div id="tab" style="height: 300px;">
        <table style="float: left; height: 300px;">
            <tr>
                <td>
                    <%:Html.Lang("Menu_Edit_Name")%>
                </td>
                <td>
                    <input type="hidden" id="Id" value="<%=Html.Encode(ViewData["Id"].ToString())%>" />
                    <input type="text" id="Name" maxlength="100" name="1" class="required" value="<%=Html.Encode(ViewData["MenuName"].ToString())%>" />
                </td>
            </tr>
            <tr>
                <td>
                    <%:Html.Lang("Menu_Edit_Description")%>
                </td>
                <td>
                    <input type="text" id="Description" maxlength="100" name="2" class="required" value="<%=Html.Encode(ViewData["Description"].ToString())%>" />
                </td>
            </tr>
            <tr>
                <td>
                    <%:Html.Lang("Menu_Edit_Parent")%>
                </td>
                <td>
                    <input type="text" id="Parent" disabled="disabled" value="<%=Html.Encode(ViewData["ParentName"].ToString())%>" />
                </td>
            </tr>
            <tr>
                <td>
                    <%:Html.Lang("Menu_Edit_LinkURL")%>
                </td>
                <td>
                    <input type="text" id="LinkURL" maxlength="100" name="6" class="required" value="<%=Html.Encode(ViewData["LinkURL"].ToString())%>" />
                </td>
            </tr>
            <tr>
                <td>
                    <%:Html.Lang("Menu_Edit_IsMenu")%>
                </td>
                <td>
                    <%if (ViewData["IsMenu"].ToString() == "1")
                      { %>
                    <input type="radio" id="Radio1" name="IsMenu" value="1" checked="checked" /><label
                        for="chkYes"><%:Html.Lang("Menu_Add_IsMenu_Yes")%></label>
                    <input type="radio" id="Radio2" name="IsMenu" value="0" /><label for="chkNo"><%:Html.Lang("Menu_Add_IsMenu_No")%></label>
                    <%}
                      else
                      { %>
                    <input type="radio" id="Radio3" name="IsMenu" value="1" /><label for="chkYes"><%:Html.Lang("Menu_Add_IsMenu_Yes")%></label>
                    <input type="radio" id="Radio4" name="IsMenu" value="0" checked="checked" /><label
                        for="chkNo"><%:Html.Lang("Menu_Add_IsMenu_No")%></label>
                    <%} %>
                </td>
            </tr>
            <tr>
                <td>
                    <%:Html.Lang("Menu_Edit_IsDisplay")%>
                </td>
                <td>
                    <%if (ViewData["IsDisplay"].ToString() == "1")
                      { %>
                    <input type="radio" id="chkYes" name="IsDisplay" value="1" checked="checked" /><label
                        for="chkYes"><%:Html.Lang("Menu_Edit_Display")%></label>
                    <input type="radio" id="chkNo" name="IsDisplay" value="0" /><label for="chkNo"><%:Html.Lang("Menu_Edit_Hidden")%></label>
                    <%}
                      else
                      {%>
                    <input type="radio" id="chkYes" name="IsDisplay" value="1" /><label for="chkYes"><%:Html.Lang("Menu_Edit_Display")%></label>
                    <input type="radio" id="chkNo" name="IsDisplay" value="0" checked="checked" /><label
                        for="chkNo"><%:Html.Lang("Menu_Edit_Hidden")%></label>
                    <%} %>
                </td>
            </tr>
            <tr>
                <td>
                    <button type="button" class="SpanButton" id="btnSave">
                        <%:Html.Lang("Menu_Edit_Save")%></button>
                </td>
                <td>
                    <button type="button" class="SpanButton" id="btnCancel">
                        <%:Html.Lang("Menu_Edit_Cancel")%></button>
                </td>
            </tr>
        </table>
    </div>
    </form>
</asp:Content>
